package com.wat.service.Impl;

import com.wat.service.MessageService;

public class MessageServiceImpl implements MessageService {

	public MessageServiceImpl(){
		System.out.println("MessageServiceImpl()");
	}

	private static MessageService messageService = new MessageServiceImpl();

	public static MessageService createInstance(){
		System.out.println("createInstance()");
		return messageService;
	}

	@Override
	public String getMessage(){
		return "hello spring";
	}

}
